# a = {
#     "zhangsan": {"password": "123456", "nickname": "qwe", "age": 18},
#     "lisi": {"password": "123456", "nickname": "qwe", "age": 18}
# }
#
# s = a["zhangsan"]["password"]
# c = a["lisi"].get("nickname")
# print(s)
# print(c)


# y = {'中国': 'Chian'}
# y['日本'] = 'Japan'
# print(y)
# x = {"username": "张三", "pwd": 123}
# x.update(y)
# print(x)
# x.pop('日本')
# print(x)
# print(len(x))
# x['username'] = '李四'
# print(x)
# print(x['中国'])
# print(x.get('中国'))

a = ['小米', '华为', 'VIOV', 'oppo', 'o']
print(a[3])
a.append("张三")
print(a)
a.insert(1, 'hello')
print(a)
b = ['123', '456']
a.extend(b)
print(a)
a.pop(2)
print(a)
a.remove("hello")
print(a)

c =[1, 4, 9, 5, 12]
# c.sort(reverse=True)
print(c)
c.reverse()
print(c)
res = a.count('o')
print(res)
res1 = a.index('o')
print(res1)
d = a.copy()
print(d)

